package Student;
import java.util.Comparator;

public class GradeCompare implements Comparator{
    public int compare(Object o1, Object o2) {
        return ((Student)o1).getGrade() - ((Student)o2).getGrade();
    }
}
